import { BaseService, Service, Permission } from '@/cool';

@Service('crm/staffdaily')
export default class extends BaseService {
	constructor() {
		super();
		this.wechatList = this.wechatList.bind(this);
		this.page = this.page.bind(this);
		this.update = this.update.bind(this);
		this.delete = this.delete.bind(this);
		this.add = this.add.bind(this);
	}
	// 微信信息
	@Permission('wechatList')
	wechatList(params) {
		return this.request({
			url: '/wechatList',
			params: {
				...params
			}
		});
	}
	@Permission('staffStatistics')
	staffStatistics(params) {
		return this.request({
			url: '/staffStatistics',
			params: {
				...params
			}
		});
	}
	@Permission('export')
	export(params) {
		return this.request({
			url: '/export',
			params: {
				...params
			}
		});
	}
}
